package com.xuhai.blog19.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuhai.blog19.admin.entity.ArticleEntity;

/**
 * @Author PangJunjie
 * @Date 2023/2/8/008
 */
public interface ArticleService extends IService<ArticleEntity> {
    IPage<ArticleEntity> getPage(int page, int limit, ArticleEntity article);

    void update(ArticleEntity article);

    void delete(int articleId);

    IPage<ArticleEntity> getHotPage(int page);

    IPage<ArticleEntity> getArticlePageByCategoryId(int page, int categoryId);

    void updateReadCount(Integer articleId);

    int getCount(ArticleEntity article);
}
